﻿using System;
using System.Collections.Generic;
using System.Text;
using Test.EventBus2.Message.Events;

namespace Test.EventBus2.Core.SubscribeStores
{
    public interface ISubscribeStore
    {
        void AddHandler<TMssage>(IHandleMessages handler, Delegate callback);
        Delegate GetMessageHandlerFunction(Type type);
        List<IHandleMessages<TMessage>> GetMessageHandlersForMessage<TMessage>();
        List<IHandleMessages> GetMessageHandlersForMessage(Type type);
    }
}
